tricks to solve questions on lcm and hcf